import { request, config } from 'utils'

const { api } = config
const { adminCompanyAccountList, adminCompanyAccountListAll, adminCompanyAccountAdd, adminCompanyAccountUpdate, adminCompanyAccountQuery, adminCompanyAccountDelete, adminCompanyAccountListbrif } = api

export async function list (params) {
  return request({
    url: adminCompanyAccountList,
    method: 'put',
    data: params,
  })
}

export async function listall (params) {
  return request({
    url: adminCompanyAccountListAll,
    method: 'put',
    data: params,
  })
}
export async function listbrif (params) {
  return request({
    url: adminCompanyAccountListbrif,
    method: 'put',
    data: params,
  })
}

export async function query (params) {
  return request({
    url: adminCompanyAccountQuery,
    method: 'put',
    data: params,
  })
}


export async function create (params) {
  return request({
    url: adminCompanyAccountAdd,
    method: 'post',
    data: params.data,
  })
}

export async function update (params) {
  return request({
    url: adminCompanyAccountUpdate,
    method: 'put',
    data: params.data,
  })
}
export async function remove (params) {
  return request({
    url: adminCompanyAccountDelete,
    method: 'delete',
    data: params,
  })
}



